package com.aba.cms.student;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        // 测试获取学生信息
        Student student = StudentService.getStudentById(1);

        // 测试获取所有课程
        List<Course> allCourses = CourseService.getAllCourses();
        
        allCourses.forEach(x->{
        	System.out.println(x);
        });

        // 测试选课
//        if (student != null && allCourses.size() > 0) {
//            Course courseToEnroll = allCourses.get(0);
//            EnrollmentService.enrollStudent(student, courseToEnroll);
//        }

        // 测试查看课表
        // List<Enrollment> enrollments = EnrollmentService.getEnrollmentsByStudent(student);
        // 这里可以添加遍历并输出课表信息的代码
    }
}